package com.th.apicenter.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "application", ignoreUnknownFields = false)
@Data
public class ApplicationProperties {

    public Kuaishou kuaishou;
    public Elm elm;
    public OPPO oppo;
    public VIVO vivo;
    public CaiNiao caiNiao;
    public JD jd;

    @Data
    public static class Kuaishou {
        private String baseUrl = "";
        private String clickUrl = "";
        private String exposureUrl = "";
    }

    @Data
    public static class Elm {
        private String baseUrl = "";
        private String reportUrl = "";
    }


    @Data
    public static class OPPO {
        private String salt = "";
        private String base64Key = "";

        //oppo数据转化接口
        private String uploadUrl = "";
    }

    @Data
    public static class VIVO {
        private String uploadUrl = "";
    }

    @Data
    public static class CaiNiao {
        private String linkUrl = "";
        private String secretkey = "";
        private String cpCode = "";
        private Long cnUnionId = null;
    }

    @Data
    public static class JD {
        private String RTAUrl = "";
    }
}
